feat(web): React UI v2.0 — Phase 4 Tasks 37+38+40 (CanvasHead + Sidenote + HITLBand)#26
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Phase 4 Batch A — three independent canvas pieces. Tasks 39 (Turn) and 41 (Transcript) follow once these land, then Task 42 (SessionCanvas) wires them together.
<CanvasHead>(web/src/canvas/CanvasHead.tsx) — eyebrow (id · status · opened · pulse dot) + 30 px title (truncated to 80 chars) + meta row (env · sev · reporter · turns · tools · agents) with Stop / Retry (Retry only when status=error). 5 tests. Addsasr-pulsekeyframes to global.css.<Sidenote>+<ToolCallCard>(web/src/canvas/{Sidenote,ToolCallCard}.tsx) — Turn's right column: k/v confidence/model/dur/turn + stacked tool-call cards with status pill, click → onSelectTool callback. 4 tests.<HITLBand>+questionFromToolCall(web/src/canvas/HITLBand.tsx,web/src/lib/hitl/questionFromToolCall.ts) — inline HITL approval band in same 3-col grid as Turn. APPROVAL byline + waited duration; question (client-generated from cfg.ui.hitl_question_templates); mono tool-line; Approve / Reject / Approve-with-Rationale buttons; sidenote with risk color. 9 tests (6 component + 3 lib).Validation
cd web && npm install→ 0 vulnerabilitiesnpm run typecheck→ exit 0npx vitest run→ 109 passed / 0 failed (Phase 3's 91 + 18 new)npm run build→ clean, 247 kB JS (76 kB gzip), 10 kB CSSNothing touches
src/runtime/— nodist/app.pyregen.Design notes
questionFromToolCallinterpolates{agent}/{tool}/{risk}/ flat{args.*}placeholders. Unresolved placeholders are left intact (visible in UI as{service}) so missing data surfaces rather than silently disappearing. Fallback template:Allow {agent} to call {tool} (risk: {risk})?.Test plan
🤖 Generated with Claude Code